<template>
  <div>
    Home页面
    <div>
      <ul>
        <router-link to="/home/news">News</router-link>
        <router-link to="/home/message">Message</router-link>
      </ul>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  name: "Home",
  // beforeDestroy() {
  //   console.log('Home组件即将被销毁了');
  // },
  // mounted() {
  //   console.log('Home组件即将挂载完毕了');
  // }
  mounted() {
    window.homeRoute = this.$route;
    window.homeRouter = this.$router;
  },
};
</script>

<style></style>
